package docbookarchivemanager.utils;

import java.io.File;

/**
 *
 * @author Jakub Hrachovec
 */
public class DocbookFile {

    private File file;
    private Boolean isIncluded;
    private Type type;
    private String hash;
    private String absolutePath;

    public enum Type {

        XML("includes"), XSL("stylesheets");
        private String path;

        private Type(String path) {
            this.path = path;
        }

        public String getPath() {
            return path;
        }

        public void setPath(String path) {
            this.path = path;
        }
    }

    public DocbookFile(File file, Boolean isIncluded, Type type, String md5, String absolutePath) {
        this.file = file;
        this.isIncluded = isIncluded;
        this.type = type;
        this.hash = md5;
        this.absolutePath = absolutePath;
    }

    /**
     * @return the path
     */
    public File getFile() {
        return file;
    }

    /**
     * @param file
     */
    public void setFile(File file) {
        this.file = file;
    }

    /**
     * @return the isIncluded
     */
    public Boolean IsIncluded() {
        return isIncluded;
    }

    /**
     * @param isIncluded the isIncluded to set
     */
    public void setIsIncluded(Boolean isIncluded) {
        this.isIncluded = isIncluded;
    }

    public Type getType() {
        return type;
    }

    public String getHash() {
        return hash;
    }

    /**
     * @return the newName
     */
    public String getAbsolutePath() {
        return absolutePath;
    }
}
